home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-09-02 | 1.4 KB | 63 lines | [TEXT/CCL2] |
- ;;; pop-up-view-button.lisp
- ;;;
- ;;; Paul McCartney, Spring 1992
- ;;;
- ;;; Copyright © 1992 Paul McCartney. All Rights Reserved.
- ;;;
- ;;; Washington University Medical Informatics Training Program
- ;;;
- ;;; DESCRIPTION:
- ;;;
- ;;; This is a specialized button. When it is pressed, a pop up view
- ;;; is displayed containing user defined graphics and text.
- ;;;
- ;;; USE:
- ;;;
- ;;; pop-up-view-button
- ;;;
- ;;; HISTORY:
- ;;;
- ;;; 7/30/92 Created. - PM
- ;;;
-
- (in-package :ccl)
-
- (require :pop-up-view)
-
- (export '(pop-up-view-button)
- :ccl)
-
-
- (defclass pop-up-view-button (button-dialog-item pop-up-view)
- () )
-
-
- (defmethod view-click-event-handler ((puvb pop-up-view-button) where)
- (declare (ignore where))
- (puv-display puvb (view-container puvb)))
-
-
- #|
- (require :quickdraw)
-
- (puv-init)
- ; (puv-destroy)
-
- (defun sample-draw-fn (view size data)
- (declare (ignore data))
- (with-fore-color *blue-color*
- (paint-oval view #@(10 10) (subtract-points size #@(10 10)) )))
-
- (defvar w)
- (setf w
- (make-instance 'window
- :color-p t
- :view-subviews
- (list (make-instance 'pop-up-view-button
- :dialog-item-text "Press me"
- :view-position #@(20 20)
- :pop-up-view-size #@(50 50)
- :pop-up-view-draw-fn #'sample-draw-fn
- :color-list (list :frame *green-color*
- :background *yellow-color*))) ))
- |#